export interface LoginParamsType {
  userName: string;
  password: string;
  mobile: string;
  captcha: string;
}

export async function fakeAccountLogin(): Promise<API.LoginStateType> {
  // NOTE: APISIX doesn‘t support user login currently, we return fake data directly.
  return Promise.resolve({
    name: 'APISIX User',
    avatar:
      '',
    userid: '00000001',
    notifyCount: 12,
    unreadCount: 11,
    access: 'admin',
    status: 'ok',
  });
}
